package com.xl98.service;

import com.xl98.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ls
 * @since 2020-05-22
 */
public interface CommentService extends IService<Comment> {
    //增加一条评论
    int addComment(Comment comment);

    //查询文章下的评论
    List<Comment> findCommentByarticleId(Map<String,String> map);

    //点赞或踩
    int updateCount(Map<String,String> map);

    boolean delete(String id);
}
